<!--
  Generated template for the HeadfacePage page.

  See http://ionicframework.com/docs/components/#navigation for more info on
  Ionic pages and navigation.
-->
<ion-header>
    <ion-navbar>
      <ion-title>设置头像</ion-title>
    </ion-navbar>
  </ion-header>
  
  
  <ion-content padding>
    <img src="{{pathForImage(lastImage)}}" style="width:100%;height:60%;" [hidden]="lastImage === null">
    <h3 [hidden]="lastImage !== null">请从图片库中选择一个图片。</h3>
  </ion-content>
  
  <ion-footer>
    <ion-toolbar color="primary">
      <ion-buttons>
        <button ion-button icon-left (click)="presentActionSheet()">
          <ion-icon name="camera"></ion-icon>选择...
        </button>
        <button ion-button icon-left (click)="uploadImage()" [disabled]="lastImage === null">
          <ion-icon name="cloud-upload"></ion-icon>上传
        </button>
      </ion-buttons>
    </ion-toolbar>
  </ion-footer>